package pile.pay.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import com.fasterxml.jackson.annotation.JsonFormat;
/**
 * <p>
 * 新平台托管表
 * </p>
 *
 * @author 郭天义
 * @since 2024-06-28
 */
@Getter
@Setter
@TableName("sys_platform_trusteeship")
@ApiModel(value = "PlatformTrusteeship对象", description = "新平台托管表")
public class PlatformTrusteeship implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("新平台托管id")
    @TableId(value = "platform_trusteeship_id", type = IdType.AUTO)
    private Integer platformTrusteeshipId;

    @ApiModelProperty("电站id")
    private Integer stationId;

    @ApiModelProperty("平台类型 0/卫莱电 2/快电 5/新电途 7/国恒 19/车惠通")
    private Integer platformType;

    @ApiModelProperty("佣金费率")
    private Double commissionRate;

    @ApiModelProperty("通道费率")
    private Double channelRate;

    @ApiModelProperty("成本佣金")
    private Double commissionRateCost;

    @ApiModelProperty("成本通道费")
    private Double channelRateCost;

    @ApiModelProperty("商户id")
    private Integer merchantId;

    @ApiModelProperty("分成类型  1/服务费分成    2/度数  3.发票  0 不分成")
    private Integer dividedIntoTypes;

    @ApiModelProperty("分账方用户id")
    private Integer dividerMemberId;

    @ApiModelProperty("分成比列/度数单价")
    private Double shareRatio;

    @ApiModelProperty("渠道 1/卫莱电微信小程序  2/卫莱电支付宝小程序 3/阿凡电微信小程序 4/阿凡电支付宝小程序 5/其他")
    private Integer channel;

    @ApiModelProperty("绑定公司主体类型 0其他公司 1一术云  2 一抹月")
    private Integer bindCompanyEntityType;

    @ApiModelProperty("是否托管 1/是 2/否")
    private Integer isTrusteeship;

    @ApiModelProperty("是否删除，1是0否")
    @TableLogic
    private Integer isDelete;

    @ApiModelProperty("添加时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty("删除时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date deleteTime;

    @ApiModelProperty("乐观锁")
    @Version
    private Integer version;

    @ApiModelProperty("商户id")
    private String mchId;

    @ApiModelProperty("类型  1/原生  2/汇付")
    private Integer paymentType;


}
